package com.heima.homeservicemanagementsystem.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.heima.homeservicemanagementsystem.entity.giteeInfo;
import com.heima.homeservicemanagementsystem.module.Result;
import org.springframework.stereotype.Service;

/**
 * @Description
 * @Author jcf
 * @Date 2025/3/9
 */
@Service
public interface GiteeLoginService {
    String getAuth();

    Result getGitAccessToken(String code);

    giteeInfo getGiteeUserInfo(String accessToken) throws JsonProcessingException;
    Result giteeLogin(giteeInfo giteeInfo);

    Result refashToken(String refresh_token) throws JsonProcessingException;
}
